{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "1716e574-f90d-4149-9a26-5c8dd1717ed8",
   "metadata": {},
   "source": [
    "### 0 git使用"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8926d7a9-b4f5-4de6-a162-f659ee5d1319",
   "metadata": {},
   "source": [
    "#### 01 安装git\n",
    "https://git-scm.com/   \n",
    "下载后一直点下一步\n",
    "\n",
    "#### 02 clone代码\n",
    "```\n",
    "git clone \n",
    "```\n",
    "#### 03 更新代码\n",
    "```\n",
    "git pull\n",
    "```"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2864ab67-f319-4265-8dcc-95cce4453e6a",
   "metadata": {},
   "source": [
    "### 1 安装anaconda\n",
    "https://www.anaconda.com/download </br>\n",
    "下载后一直点下一步"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "04ba8c0f-4d86-45ac-9bdf-dc5feec7ea99",
   "metadata": {},
   "source": [
    "### 2 创建虚拟环境\n",
    "```\n",
    "conda create -n zk2022 python==3.10.12 -y\n",
    "```\n",
    "> -n 虚拟环境名字 <br/>\n",
    "> python==3.10.12 指定python版本号  \n",
    "> -y 安装依赖包"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "1436bd44-ac8e-4f7b-aa0a-103162aaef78",
   "metadata": {},
   "source": [
    "切换虚拟环境\n",
    "\n",
    "conda activate zk2022"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f77ffb79-e858-41ee-827f-6a9f61a05be8",
   "metadata": {},
   "source": [
    "### 3 配置pip国内镜像源\n",
    "#### 3.1 查看配置源\n",
    "```\n",
    "pip config get global.index-url\n",
    "```\n",
    "#### 3.2 设置清华源\n",
    "```\n",
    "pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple\n",
    "```"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "dfea1928-6de4-47b0-868a-04c51d8feb53",
   "metadata": {},
   "source": [
    "### 4 安装依赖包\n",
    "```\n",
    "pip install numpy==1.26.3 \n",
    "pip install matplotlib==3.8.2\n",
    "pip install scikit-learn==1.3.1  \n",
    "pip install jupyter\n",
    "```"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ec27d442-eed2-4bec-b87d-15facdf4102a",
   "metadata": {},
   "source": [
    "### 5 启动jupyter\n",
    "```\n",
    "jupyter notebook\n",
    "```"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "a829c464-6a49-43f8-91a3-ae259c4ac965",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
